<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::BivariatePolynomialT&lt; real &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_bivariate_polynomial_t.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="classpcl_1_1_bivariate_polynomial_t-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::BivariatePolynomialT&lt; real &gt; 模板类 参考<div class="ingroups"><a class="el" href="group__common.html">Common components</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This represents a bivariate polynomial and provides some functionality for it  
 <a href="classpcl_1_1_bivariate_polynomial_t.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="bivariate__polynomial_8h_source.html">bivariate_polynomial.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3b5e10284148e752608ac7a3360c38bc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a3b5e10284148e752608ac7a3360c38bc">BivariatePolynomialT</a> (int new_degree=0)</td></tr>
<tr class="separator:a3b5e10284148e752608ac7a3360c38bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c0faaa19845edb22846ee572897a7ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a0c0faaa19845edb22846ee572897a7ae">BivariatePolynomialT</a> (const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a> &amp;other)</td></tr>
<tr class="separator:a0c0faaa19845edb22846ee572897a7ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f28750be24f617a845d13a5b162024d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a0f28750be24f617a845d13a5b162024d">~BivariatePolynomialT</a> ()</td></tr>
<tr class="separator:a0f28750be24f617a845d13a5b162024d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a662197ded030021e9ed89b1e340a136d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a662197ded030021e9ed89b1e340a136d">operator=</a> (const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a> &amp;other)</td></tr>
<tr class="separator:a662197ded030021e9ed89b1e340a136d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed11361541574e5403b2cae87a6fdefb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#aed11361541574e5403b2cae87a6fdefb">setDegree</a> (int new_degree)</td></tr>
<tr class="separator:aed11361541574e5403b2cae87a6fdefb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3d75267352127a78d7ac4b8c7bf7e09"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">getNoOfParameters</a> () const</td></tr>
<tr class="separator:ad3d75267352127a78d7ac4b8c7bf7e09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdc0e524f9459299f1ce12ad90c80d11"><td class="memItemLeft" align="right" valign="top">real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#acdc0e524f9459299f1ce12ad90c80d11">getValue</a> (real x, real y) const</td></tr>
<tr class="separator:acdc0e524f9459299f1ce12ad90c80d11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acde974dde59cc80e99e489c5060144e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#acde974dde59cc80e99e489c5060144e9">calculateGradient</a> (bool forceRecalc=false)</td></tr>
<tr class="separator:acde974dde59cc80e99e489c5060144e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6f0e129462f6ab1a5b5418b4fad4e81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#af6f0e129462f6ab1a5b5418b4fad4e81">getValueOfGradient</a> (real x, real y, real &amp;gradX, real &amp;gradY)</td></tr>
<tr class="separator:af6f0e129462f6ab1a5b5418b4fad4e81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2196b7d0c51d481bd3afe59cad5704ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a2196b7d0c51d481bd3afe59cad5704ea">findCriticalPoints</a> (std::vector&lt; real &gt; &amp;x_values, std::vector&lt; real &gt; &amp;y_values, std::vector&lt; int &gt; &amp;types) const</td></tr>
<tr class="separator:a2196b7d0c51d481bd3afe59cad5704ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a933644376259b50d3e28d121024b9c08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a933644376259b50d3e28d121024b9c08">writeBinary</a> (std::ostream &amp;os) const</td></tr>
<tr class="separator:a933644376259b50d3e28d121024b9c08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0994df450ff82a1ad97819b77b84378"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#ae0994df450ff82a1ad97819b77b84378">writeBinary</a> (const char *filename) const</td></tr>
<tr class="separator:ae0994df450ff82a1ad97819b77b84378"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76d452bda6622b29b1d9629bc0de6986"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a76d452bda6622b29b1d9629bc0de6986">readBinary</a> (std::istream &amp;os)</td></tr>
<tr class="separator:a76d452bda6622b29b1d9629bc0de6986"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa648e4933d279d954f4379ca7094186a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#aa648e4933d279d954f4379ca7094186a">readBinary</a> (const char *filename)</td></tr>
<tr class="separator:aa648e4933d279d954f4379ca7094186a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af340b29b096afc9905bb3dbace20fc77"><td class="memItemLeft" align="right" valign="top">static unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#af340b29b096afc9905bb3dbace20fc77">getNoOfParametersFromDegree</a> (int n)</td></tr>
<tr class="separator:af340b29b096afc9905bb3dbace20fc77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ae73e09a6cca0b1d4fa878f7e580cb043"><td class="memItemLeft" align="right" valign="top"><a id="ae73e09a6cca0b1d4fa878f7e580cb043"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>degree</b></td></tr>
<tr class="separator:ae73e09a6cca0b1d4fa878f7e580cb043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ee0b3c6567accf95ac5088de588dae"><td class="memItemLeft" align="right" valign="top"><a id="a81ee0b3c6567accf95ac5088de588dae"></a>
real *&#160;</td><td class="memItemRight" valign="bottom"><b>parameters</b></td></tr>
<tr class="separator:a81ee0b3c6567accf95ac5088de588dae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af600117b8b76d52dfbfe8c25e857ea73"><td class="memItemLeft" align="right" valign="top"><a id="af600117b8b76d52dfbfe8c25e857ea73"></a>
<a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>gradient_x</b></td></tr>
<tr class="separator:af600117b8b76d52dfbfe8c25e857ea73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac962baa4134dbbe92cd194102c50201"><td class="memItemLeft" align="right" valign="top"><a id="aac962baa4134dbbe92cd194102c50201"></a>
<a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>gradient_y</b></td></tr>
<tr class="separator:aac962baa4134dbbe92cd194102c50201"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a50f80298cd732662a0ca9ab7c2b6af1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">memoryCleanUp</a> ()</td></tr>
<tr class="separator:a50f80298cd732662a0ca9ab7c2b6af1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19a20b4a2f728467070e04b12e65f5f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html#a19a20b4a2f728467070e04b12e65f5f9">deepCopy</a> (const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; &amp;other)</td></tr>
<tr class="separator:a19a20b4a2f728467070e04b12e65f5f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename real&gt;<br />
class pcl::BivariatePolynomialT&lt; real &gt;</h3>

<p>This represents a bivariate polynomial and provides some functionality for it </p>
<dl class="section author"><dt>作者</dt><dd>Bastian Steder </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a3b5e10284148e752608ac7a3360c38bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b5e10284148e752608ac7a3360c38bc">&#9670;&nbsp;</a></span>BivariatePolynomialT() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::<a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_degree</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor </p>
<div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                                                                   :</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  degree(0), parameters(NULL), gradient_x(NULL), gradient_y(NULL)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#aed11361541574e5403b2cae87a6fdefb">setDegree</a>(new_degree);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_aed11361541574e5403b2cae87a6fdefb"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#aed11361541574e5403b2cae87a6fdefb">pcl::BivariatePolynomialT::setDegree</a></div><div class="ttdeci">void setDegree(int new_degree)</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:67</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0c0faaa19845edb22846ee572897a7ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c0faaa19845edb22846ee572897a7ae">&#9670;&nbsp;</a></span>BivariatePolynomialT() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::<a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor </p>
<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                                                                                      :</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  degree(0), parameters(NULL), gradient_x(NULL), gradient_y(NULL)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a19a20b4a2f728467070e04b12e65f5f9">deepCopy</a> (other);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_a19a20b4a2f728467070e04b12e65f5f9"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#a19a20b4a2f728467070e04b12e65f5f9">pcl::BivariatePolynomialT::deepCopy</a></div><div class="ttdeci">void deepCopy(const BivariatePolynomialT&lt; real &gt; &amp;other)</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:97</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0f28750be24f617a845d13a5b162024d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f28750be24f617a845d13a5b162024d">&#9670;&nbsp;</a></span>~BivariatePolynomialT()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::~<a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor </p>
<div class="fragment"><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">memoryCleanUp</a> ();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_a50f80298cd732662a0ca9ab7c2b6af1d"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">pcl::BivariatePolynomialT::memoryCleanUp</a></div><div class="ttdeci">void memoryCleanUp()</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:88</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="acde974dde59cc80e99e489c5060144e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acde974dde59cc80e99e489c5060144e9">&#9670;&nbsp;</a></span>calculateGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::calculateGradient </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>forceRecalc</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculate the gradient of this polynomial If forceRecalc is false, it will do nothing when the gradient already exists </p>
<div class="fragment"><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;{</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <span class="keywordflow">if</span> (gradient_x!=NULL &amp;&amp; !forceRecalc) </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="keywordflow">if</span> (gradient_x == NULL)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    gradient_x = <span class="keyword">new</span> <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT&lt;real&gt;</a> (degree-1);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  <span class="keywordflow">if</span> (gradient_y == NULL)</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    gradient_y = <span class="keyword">new</span> <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT&lt;real&gt;</a> (degree-1);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> parameterPosDx=0, parameterPosDy=0;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> xDegree=degree; xDegree&gt;=0; xDegree--) </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> yDegree=degree-xDegree; yDegree&gt;=0; yDegree--) </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;      <span class="keywordflow">if</span> (xDegree &gt; 0) </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;      {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        gradient_x-&gt;parameters[parameterPosDx] = xDegree * parameters[parameterPosDx];</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        parameterPosDx++;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;      }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;      <span class="keywordflow">if</span> (yDegree &gt; 0) </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;      {</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        gradient_y-&gt;parameters[parameterPosDy] = yDegree * parameters[ ( (degree+2-xDegree)* (degree+1-xDegree))/2 -</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                                                                        yDegree - 1];</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        parameterPosDy++;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;      }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a></div><div class="ttdoc">This represents a bivariate polynomial and provides some functionality for it</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.h:53</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a19a20b4a2f728467070e04b12e65f5f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19a20b4a2f728467070e04b12e65f5f9">&#9670;&nbsp;</a></span>deepCopy()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::deepCopy </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a deep copy of the given polynomial </p>
<div class="fragment"><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;{</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="keywordflow">if</span> (<span class="keyword">this</span> == &amp;other) <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keywordflow">if</span> (degree != other.degree) </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">memoryCleanUp</a> ();</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    degree = other.degree;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    parameters = <span class="keyword">new</span> real[<a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">getNoOfParameters</a> ()];</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordflow">if</span> (other.gradient_x == NULL) </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keyword">delete</span> gradient_x; gradient_x=NULL;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keyword">delete</span> gradient_y; gradient_y=NULL;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (gradient_x==NULL) </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    gradient_x = <span class="keyword">new</span> <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT&lt;real&gt;</a> ();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    gradient_y = <span class="keyword">new</span> <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT&lt;real&gt;</a> ();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  real* tmpParameters1 = parameters;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keyword">const</span> real* tmpParameters2 = other.parameters;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> noOfParameters = <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">getNoOfParameters</a> ();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;noOfParameters; i++)</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    *tmpParameters1++ = *tmpParameters2++;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="keywordflow">if</span> (other.gradient_x != NULL) </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  {</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    gradient_x-&gt;deepCopy (*other.gradient_x);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    gradient_y-&gt;deepCopy (*other.gradient_y);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  }</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_ad3d75267352127a78d7ac4b8c7bf7e09"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">pcl::BivariatePolynomialT::getNoOfParameters</a></div><div class="ttdeci">unsigned int getNoOfParameters() const</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.h:75</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a2196b7d0c51d481bd3afe59cad5704ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2196b7d0c51d481bd3afe59cad5704ea">&#9670;&nbsp;</a></span>findCriticalPoints()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::findCriticalPoints </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; real &gt; &amp;&#160;</td>
          <td class="paramname"><em>x_values</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; real &gt; &amp;&#160;</td>
          <td class="paramname"><em>y_values</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>types</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns critical points of the polynomial. type can be 0=maximum, 1=minimum, or 2=saddle point !!Currently only implemented for degree 2!! </p>
<div class="fragment"><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;{</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  x_values.clear ();</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  y_values.clear ();</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  types.clear ();</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  <span class="keywordflow">if</span> (degree == 2)</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    real x = (real(2)*parameters[2]*parameters[3] - parameters[1]*parameters[4]) /</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;             (parameters[1]*parameters[1] - real(4)*parameters[0]*parameters[3]),</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;         y = (real(-2)*parameters[0]*x - parameters[2]) / parameters[1];</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordflow">if</span> (!pcl_isfinite(x) || !pcl_isfinite(y))</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordtype">int</span> type = 2;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    real det_H = real(4)*parameters[0]*parameters[3] - parameters[1]*parameters[1];</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="comment">//std::cout &lt;&lt; &quot;det(H) = &quot;&lt;&lt;det_H&lt;&lt;&quot;\n&quot;;</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keywordflow">if</span> (det_H &gt; real(0))  <span class="comment">// Check Hessian determinant</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    {</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;      <span class="keywordflow">if</span> (parameters[0]+parameters[3] &lt; real(0))  <span class="comment">// Check Hessian trace</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        type = 0;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        type = 1;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    x_values.push_back(x);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    y_values.push_back(y);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    types.push_back(type);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;  }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    std::cerr &lt;&lt; __PRETTY_FUNCTION__ &lt;&lt; <span class="stringliteral">&quot; is not implemented for polynomials of degree &quot;</span>&lt;&lt;degree&lt;&lt;<span class="stringliteral">&quot;. Sorry.\n&quot;</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;  }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ad3d75267352127a78d7ac4b8c7bf7e09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3d75267352127a78d7ac4b8c7bf7e09">&#9670;&nbsp;</a></span>getNoOfParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::getNoOfParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>How many parametes has a bivariate polynomial with this degree </p>
<div class="fragment"><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#af340b29b096afc9905bb3dbace20fc77">getNoOfParametersFromDegree</a> (degree);}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_af340b29b096afc9905bb3dbace20fc77"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#af340b29b096afc9905bb3dbace20fc77">pcl::BivariatePolynomialT::getNoOfParametersFromDegree</a></div><div class="ttdeci">static unsigned int getNoOfParametersFromDegree(int n)</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.h:113</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="af340b29b096afc9905bb3dbace20fc77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af340b29b096afc9905bb3dbace20fc77">&#9670;&nbsp;</a></span>getNoOfParametersFromDegree()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static unsigned int <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::getNoOfParametersFromDegree </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>How many parametes has a bivariate polynomial of the given degree </p>
<div class="fragment"><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;{ <span class="keywordflow">return</span> ((n+2)* (n+1))/2;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="acdc0e524f9459299f1ce12ad90c80d11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdc0e524f9459299f1ce12ad90c80d11">&#9670;&nbsp;</a></span>getValue()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">real <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::getValue </td>
          <td>(</td>
          <td class="paramtype">real&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculate the value of the polynomial at the given point </p>
<div class="fragment"><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> parametersSize = <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">getNoOfParameters</a> ();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;  real* tmpParameter = &amp;parameters[parametersSize-1];</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  real tmpX=1.0, tmpY, ret=0;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> xDegree=0; xDegree&lt;=degree; xDegree++) </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    tmpY = 1.0;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> yDegree=0; yDegree&lt;=degree-xDegree; yDegree++)</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;      ret += (*tmpParameter)*tmpX*tmpY;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      tmpY *= y;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;      tmpParameter--;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    tmpX *= x;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;  }</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="af6f0e129462f6ab1a5b5418b4fad4e81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6f0e129462f6ab1a5b5418b4fad4e81">&#9670;&nbsp;</a></span>getValueOfGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::getValueOfGradient </td>
          <td>(</td>
          <td class="paramtype">real&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&#160;</td>
          <td class="paramname"><em>gradX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">real &amp;&#160;</td>
          <td class="paramname"><em>gradY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculate the value of the gradient at the given point </p>
<div class="fragment"><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;{</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#acde974dde59cc80e99e489c5060144e9">calculateGradient</a> ();</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  gradX = gradient_x-&gt;getValue (x, y);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  gradY = gradient_y-&gt;getValue (x, y);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_acde974dde59cc80e99e489c5060144e9"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#acde974dde59cc80e99e489c5060144e9">pcl::BivariatePolynomialT::calculateGradient</a></div><div class="ttdeci">void calculateGradient(bool forceRecalc=false)</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:131</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a50f80298cd732662a0ca9ab7c2b6af1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50f80298cd732662a0ca9ab7c2b6af1d">&#9670;&nbsp;</a></span>memoryCleanUp()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::memoryCleanUp</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Delete all members </p>
<div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keyword">delete</span>[] parameters; parameters = NULL;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="keyword">delete</span> gradient_x; gradient_x = NULL;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <span class="keyword">delete</span> gradient_y; gradient_y = NULL;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a662197ded030021e9ed89b1e340a136d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a662197ded030021e9ed89b1e340a136d">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&amp; <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a>&lt; real &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>= operator </p>
<div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;{ <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a19a20b4a2f728467070e04b12e65f5f9">deepCopy</a> (other); <span class="keywordflow">return</span> *<span class="keyword">this</span>;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="aa648e4933d279d954f4379ca7094186a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa648e4933d279d954f4379ca7094186a">&#9670;&nbsp;</a></span>readBinary() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::readBinary </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>read binary from a file </p>
<div class="fragment"><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;{</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  std::ifstream fin (filename);</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a76d452bda6622b29b1d9629bc0de6986">readBinary</a> (fin);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_a76d452bda6622b29b1d9629bc0de6986"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#a76d452bda6622b29b1d9629bc0de6986">pcl::BivariatePolynomialT::readBinary</a></div><div class="ttdeci">void readBinary(std::istream &amp;os)</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:285</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a76d452bda6622b29b1d9629bc0de6986"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76d452bda6622b29b1d9629bc0de6986">&#9670;&nbsp;</a></span>readBinary() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::readBinary </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>read binary from a stream </p>
<div class="fragment"><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;{</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">memoryCleanUp</a> ();</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;  os.read (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;this-&gt;degree), <span class="keyword">sizeof</span> (<span class="keywordtype">int</span>));</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paramCnt = <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#af340b29b096afc9905bb3dbace20fc77">getNoOfParametersFromDegree</a> (this-&gt;degree);</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  parameters = <span class="keyword">new</span> real[paramCnt];</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;  os.read (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;(*this-&gt;parameters)), paramCnt * <span class="keyword">sizeof</span> (real));</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="aed11361541574e5403b2cae87a6fdefb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed11361541574e5403b2cae87a6fdefb">&#9670;&nbsp;</a></span>setDegree()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::setDegree </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_degree</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize members to default values </p>
<div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;{</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="keywordflow">if</span> (newDegree &lt;= 0)</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    degree = -1;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a50f80298cd732662a0ca9ab7c2b6af1d">memoryCleanUp</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keywordtype">int</span> oldDegree = degree;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  degree = newDegree;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordflow">if</span> (oldDegree != degree)</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">delete</span>[] parameters;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    parameters = <span class="keyword">new</span> real[<a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#ad3d75267352127a78d7ac4b8c7bf7e09">getNoOfParameters</a> ()];</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="keyword">delete</span> gradient_x; gradient_x = NULL;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keyword">delete</span> gradient_y; gradient_y = NULL;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ae0994df450ff82a1ad97819b77b84378"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0994df450ff82a1ad97819b77b84378">&#9670;&nbsp;</a></span>writeBinary() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::writeBinary </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>write as binary into a file </p>
<div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;{</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;  std::ofstream fout (filename);</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;  <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#a933644376259b50d3e28d121024b9c08">writeBinary</a> (fout);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_bivariate_polynomial_t_html_a933644376259b50d3e28d121024b9c08"><div class="ttname"><a href="classpcl_1_1_bivariate_polynomial_t.html#a933644376259b50d3e28d121024b9c08">pcl::BivariatePolynomialT::writeBinary</a></div><div class="ttdeci">void writeBinary(std::ostream &amp;os) const</div><div class="ttdef"><b>Definition:</b> bivariate_polynomial.hpp:268</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a933644376259b50d3e28d121024b9c08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a933644376259b50d3e28d121024b9c08">&#9670;&nbsp;</a></span>writeBinary() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename real &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">pcl::BivariatePolynomialT</a>&lt; real &gt;::writeBinary </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>write as binary to a stream </p>
<div class="fragment"><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;{</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;  os.write (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;degree), <span class="keyword">sizeof</span> (<span class="keywordtype">int</span>));</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paramCnt = <a class="code" href="classpcl_1_1_bivariate_polynomial_t.html#af340b29b096afc9905bb3dbace20fc77">getNoOfParametersFromDegree</a> (this-&gt;degree);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;  os.write (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (this-&gt;parameters), paramCnt * <span class="keyword">sizeof</span> (real));</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>common/include/pcl/common/<a class="el" href="bivariate__polynomial_8h_source.html">bivariate_polynomial.h</a></li>
<li>common/include/pcl/common/impl/<a class="el" href="bivariate__polynomial_8hpp_source.html">bivariate_polynomial.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_bivariate_polynomial_t.html">BivariatePolynomialT</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
